﻿using System;
using System.Collections.Generic;
using System.Text;
//new
using System.Xml;
using JRCore.tools;
using System.Xml.Serialization;
using System.IO;

namespace JRCore.protocol
{
    /// <summary>
    /// 设备信息节点
    /// </summary>
    [Serializable]
    public class DeviceNode
    {
        /// <summary>
        /// 设备IP
        /// </summary>
        [XmlElement("ip")]
        public string ip;

        /// <summary>
        /// 所属路口编号
        /// </summary>
        [XmlElement("roadid")]
        public string roadid;

        /// <summary>
        /// 设备编号
        /// </summary>
        [XmlElement("sbbh")]
        public string sbbh;

        /// <summary>
        /// 设备类型
        /// </summary>
        [XmlElement("sblx")]
        public string sblx;

        /// <summary>
        /// 安装方向
        /// </summary>
        [XmlElement("direction")]
        public string direction;

        /// <summary>
        /// 用户名
        /// </summary>
        [XmlElement("username")]
        public string username;

        /// <summary>
        /// 密码
        /// </summary>
        [XmlElement("password")]
        public string password;

        /// <summary>
        /// DeviceNode
        /// </summary>
        public DeviceNode()
        {
            ip = "";
            roadid = "";
            sbbh = "";
            sblx = "";
            direction = "";
            username = "";
            password = "";
        }
    }
}
